//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.baidu.trace;

import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

public final class r {
    public static void a(String var0) {
        JSONArray var1 = null;

        try {
            var1 = new JSONArray(var0);
            byte var11 = 15;
            byte var2 = 30;
            byte var3 = 5;

            for(int var4 = 0; var4 < var1.length(); ++var4) {
                JSONObject var5;
                int var6 = (var5 = var1.getJSONObject(var4)).getInt("id");
                byte var12 = (byte)var5.getInt("value");
                switch(var6) {
                    case 1:
                        if(var12 >= 5) {
                            var11 = var12;
                        }
                        break;
                    case 2:
                        if(var12 >= 2) {
                            var2 = var12;
                        }
                        break;
                    case 3:
                        if(var12 >= 5 && var12 <= 128) {
                            z.r = var12;
                        }
                        break;
                    case 4:
                        z.s = var12;
                    case 5:
                    case 6:
                    case 7:
                    case 8:
                    case 9:
                    case 10:
                    case 11:
                    default:
                        break;
                    case 12:
                        if(var12 >= ar.c) {
                            var3 = var12;
                        }
                }
            }

            z.p = var11;
            if(var3 != 0 && var2 != 0 && var2 % var3 == 0) {
                ar.b = var3 * 1000;
                z.w = var3;
                bd.i = var2 * 1000;
                z.q = var2;
                bd.d();
            }

        } catch (JSONException var9) {
            ;
        } finally {
            ;
        }
    }
}
